/*
 * Copyright (c) 2005, 2014 vacoor
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 */
package org.vacoor.nothing.common.dataset;

import java.util.Date;

/**
 * 记录行
 *
 * @author vacoor
 */
public interface Record {

    /**
     * 获取当前行号
     */
    int getRow();

    /**
     *
     * @return
     */
    int getFieldCount();

    /**
     * 获取列索引对应的值
     *
     * @param index
     * @return
     */
    Object getValue(int index);

    /**
     * 获取列名对应的值 (列名eg: A, BS)
     *
     * @param name
     * @return
     */
    Object getValue(String name);

    Boolean getBoolean(int index);

    Boolean getBoolean(String name);

    Number getNumber(int index);

    Number getNumber(String name);

    String getString(int index);

    String getString(String name);

    Date getDate(int index);

    Date getDate(String name);

}
